#import "RNHistory.h"
#import "RNConstants.h"

static RNHistory *sharedHistory = nil;

@implementation RNHistory

@synthesize icon = icon_;

+(RNHistory *)sharedHistory {
    if (!sharedHistory)
        sharedHistory = [[RNHistory alloc] init];
    return sharedHistory;
}

-(id)init {
    if (!(self = [super init]))
        return nil;
    
    [self setIcon:[NSImage imageNamed:@"sourceList_history.png"]];
    return self;
}

-(NSString *)title {
    return @"History";
}

-(NSArray *)children {
    return nil;
}

-(id)parent {
    return nil;
}

-(NSDictionary *)objectDictionary {
    NSMutableDictionary *objectDictionary = [NSMutableDictionary dictionary];
    [objectDictionary setValue:[self title] forKey:RNTitleKey];
    [objectDictionary setValue:[self icon] forKey:@"icon"];
    return objectDictionary;
}

-(BOOL)canContainObjectsWithEntityNames:(NSArray *)entityNames {
    return NO;
}

@end
